//#include "VideoPlayerManager.h"
#include "TestSubTitle2.h"
#include "ShowSmallVideo.h"
#pragma once

class GraphicShowVideo: public CWnd
{
	DECLARE_DYNAMIC(GraphicShowVideo)
public:
	GraphicShowVideo(void);
	~GraphicShowVideo(void);

	static GraphicShowVideo* ShareInstance();
	void SetWndParentForVideoPlayerManager();

public: 

	DECLARE_MESSAGE_MAP()
	afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
	afx_msg void OnSize(UINT nType, int cx, int cy);


	
public:
	TestSubTitle2	*m_Sub;
	ShowSmallVideo   m_showSmall;
	CRect			 m_rtPlayer;
	bool			 isShowSubtitle;
	bool             m_bCheckShow;
	void			HandleEventFromGraph();
	virtual BOOL PreTranslateMessage(MSG* pMsg);
	void checkSubTitle();

	afx_msg BOOL OnEraseBkgnd(CDC* pDC);
};
